package packets.s2cpackets;

import entities.Player;
import packets.SPacket;

/**
 * Chat message
 */
public class S0x03 extends SPacket {

	/**
	 * Represents an ordinary chatmessage. Nothing is added to the provided message.
	 * @param message
	 */
	public S0x03(String message) {
		super(0x03);
		addString(message);
	}
	
	/**
	 * Represents a chat message on behalf of the player.
	 * The playername is send between < > characters.
	 * @param p
	 * @param message
	 */
	public S0x03(Player player, String message) {
		super(0x03);
		addString("<"+player.getName()+"> "+message);
		
	}

}
